/* Lab Exp */
 
/* Figure 1 */
sum SuppCasino if condition == 3 | condition == 6| condition == 9 | condition == 12 | condition == 15
sum SuppCasino if condition == 1 | condition == 4| condition == 7 | condition == 10 | condition == 13
sum SuppCasino if condition == 2 |condition == 5 | condition == 8 | condition == 11 | condition == 14

/* Figure 2 */
sum SuppPatAct if condition == 3 | condition == 6| condition == 9 | condition == 12 | condition == 15
sum SuppPatAct if condition == 1 | condition == 4| condition == 7 | condition == 10 | condition == 13
sum SuppPatAct if condition == 2 |condition == 5 | condition == 8 | condition == 11 | condition == 14

/* Figure 3,5,7 */
tab condition, sum(SuppCasino)
tab condition SFramNO
tab condition SFramCON
tab condition SFramPRO

/* Figure 3 (merged pretreatment conditions) */
sum SuppCasino if condition == 6 | condition == 9
sum SuppCasino if condition == 4 | condition == 7
sum SuppCasino if condition == 5 | condition == 8
sum SuppCasino if condition == 12 | condition == 15
sum SuppCasino if condition == 10 | condition == 13
sum SuppCasino if condition == 11 |condition == 14

/* Figure 4,6,8 */
tab condition, sum(SuppPatAct)
tab condition SFramNO
tab condition SFramCON
tab condition SFramPRO

/* Figure 4 (merged pretreatment conditions) */
sum SuppPatAct if condition == 6 | condition == 9
sum SuppPatAct if condition == 4 | condition == 7
sum SuppPatAct if condition == 5 | condition == 8
sum SuppPatAct if condition == 12 | condition == 15
sum SuppPatAct if condition == 10 | condition == 13
sum SuppPatAct if condition == 11 |condition == 14


/* T-tests for all Casino comparisons */  
ttest SuppCasino, by(SFramPRO), if  SFramCON == 0
ttest SuppCasino, by( SFramCON), if  SFramPRO == 0
ttest SuppCasino, by(SFramPRO), if  SFramCON == 0 & condition > 3 & condition < 10
ttest SuppCasino, by(SFramCON), if  SFramPRO == 0 & condition > 3 & condition < 10
ttest SuppCasino, by(SFramPRO), if  SFramCON == 0 & condition > 9
ttest SuppCasino, by(SFramCON), if  SFramPRO == 0 & condition > 9
ttest SuppCasino, by(SFramPRO), if  SFramCON == 0 & condition < 4
ttest SuppCasino, by(SFramCON), if  SFramPRO == 0 & condition < 4
/* Tests against control group mean */
ttest SuppCasino, by(condition), if condition == 1 | condition == 4
ttest SuppCasino, by(condition), if condition == 1 | condition == 5
ttest SuppCasino, by(condition), if condition == 1 | condition == 6
ttest SuppCasino, by(condition), if condition == 1 | condition == 7
ttest SuppCasino, by(condition), if condition == 1 | condition == 8
ttest SuppCasino, by(condition), if condition == 1 | condition == 8
ttest SuppCasino, by(condition), if condition == 1 | condition == 9
ttest SuppCasino, by(condition), if condition == 1 | condition == 10
ttest SuppCasino, by(condition), if condition == 1 | condition == 11
ttest SuppCasino, by(condition), if condition == 1 | condition == 12
ttest SuppCasino, by(condition), if condition == 1 | condition == 13
ttest SuppCasino, by(condition), if condition == 1 | condition == 14
ttest SuppCasino, by(condition), if condition == 1 | condition == 15

/* T-tests for all Patriot Act comparisons */  
ttest SuppPatAct, by(SFramPRO), if  SFramCON == 0
ttest SuppPatAct, by( SFramCON), if  SFramPRO == 0
ttest SuppPatAct, by(SFramPRO), if  SFramCON == 0 & condition > 3 & condition < 10
ttest SuppPatAct, by(SFramCON), if  SFramPRO == 0 & condition > 3 & condition < 10
ttest SuppPatAct, by(SFramPRO), if  SFramCON == 0 & condition > 9
ttest SuppPatAct, by(SFramCON), if  SFramPRO == 0 & condition > 9
ttest SuppPatAct, by(SFramPRO), if  SFramCON == 0 & condition < 4
ttest SuppPatAct, by(SFramCON), if  SFramPRO == 0 & condition < 4
/* Tests against control group mean */
ttest SuppPatAct, by(condition), if condition == 1 | condition == 4
ttest SuppPatAct, by(condition), if condition == 1 | condition == 5
ttest SuppPatAct, by(condition), if condition == 1 | condition == 6
ttest SuppPatAct, by(condition), if condition == 1 | condition == 7
ttest SuppPatAct, by(condition), if condition == 1 | condition == 8
ttest SuppPatAct, by(condition), if condition == 1 | condition == 8
ttest SuppPatAct, by(condition), if condition == 1 | condition == 9
ttest SuppPatAct, by(condition), if condition == 1 | condition == 10
ttest SuppPatAct, by(condition), if condition == 1 | condition == 11
ttest SuppPatAct, by(condition), if condition == 1 | condition == 12
ttest SuppPatAct, by(condition), if condition == 1 | condition == 13
ttest SuppPatAct, by(condition), if condition == 1 | condition == 14
ttest SuppPatAct, by(condition), if condition == 1 | condition == 15

/* T-tests for belief importance */
ttest BIBudget, by(olXconXpro)
ttest BIBudget, by(olXconXpro), if condition > 6 & condition < 10
 
ttest BITerr, by(olXconXpro)
ttest BITerr, by(olXconXpro), if condition > 6 & condition < 10
 
ttest BISocialCsts, by(olXproXcon)
ttest BISocialCsts, by(olXproXcon), if condition > 3 & condition < 7
 
ttest BICivilLib, by(olXproXcon)
ttest BICivilLib, by(olXproXcon), if condition > 3 & condition < 7
